<?php

class Projects_ajax extends Admin_Controller {

	function __construct()
	{
		parent::__construct();	
		$this->sSkinFile = 'ajax';
	}
	
	public function index()
	{
		return null;
	}
	
	
	
	public function delete_project()
	{
		$iProjectId = $this->input->post('project_id', true, 0);
		
		$this->load->model('db/baa_projects', 'baa_projects');
		
		$this->baa_projects->project_id = $iProjectId;
		
		$this->baa_projects->project_status = 'NL';
		
		$this->baa_projects->save();
		
		$data['json_encode'] = array('deleted' => 1);
		
		$this->load->view('php_json_encode', $data);
	}
	
}

?>